/* 页面基础样式 */

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Monaco';
    margin: 0;
    padding: 0;
}

#app {
    max-width: 100%;
    margin: 0 auto;
}

.top {
    width: 100%;
    height: 50px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 2px 2px 2px #DDDDDD;
    display: flex;
    justify-content: space-between;
}

.top-left {
    float: left;
    vertical-align: middle;
    height: 100%;
    align-items: center;
    display: flex;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #DDDDDD;
    min-width: 50px;
    box-shadow: 2px 2px 2px #DDDDDD;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.top-right {
    width: 500px;
    height: 50px;
    margin-right: 80px;
    vertical-align: middle;
    display: flex;
    align-items: center;
    /* 垂直居中 */
}

.top-right .search {
    float: left;
}

.top-right .user {
    float: left;
    margin-left: 10%;
    position: relative;
}

.userlist {
    list-style-type: none;
    display: flex;
    align-items: center;
    /* 头像和用户名垂直居中 */
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.userlist .username {
    width: 40px;
    height: 20px;
}

.mid {
    width: 100%;
    height: 800px;
    margin: 0 auto;
    box-shadow: 2px 2px 2px #DDDDDD;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.video-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 缩略图控制样式 */
.video-item .shot {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.video-item .title {
    padding: 12px;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#app {
    position: relative;
}

.dialog {
    width: 300px;
    height: 250px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #DDDDDD;
}

.dialog .close-btn {
    margin-left: auto;
}

.dialog .avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px #DDDDDD;
}

.dialog .login-form {
    font-size: 10px;
    font-family: 'Monaco';
    line-height: 30px;
}

.dialog .username {
    margin: 0 auto;
    display: inline;
    line-height: 20px;
}

.dialog .password {
    margin: 0 auto;
    display: inline;
    line-height: 20px;
}